import fetch from '@/utils/fetch'

const GroupApi = {
    // 规格组列表
  getPageList (params) {
    return fetch({
      url: '/api/spec/group/page',
      method: 'get',
      params: params
    })
  },
  init (params) {
    return fetch({
      url: '/api/spec/group/list',
      method: 'get',
      params: params
    })
  },
   //添加规格组
  add (params) {
    return fetch({
      url: '/api/spec/group/add',
      method: 'post',
      data: params
    })
  },
  update (id, params) {
    return fetch({
      url: '/api/spec/group/' + id,
      method: 'put',
      data: params
    })
  },
  //删除规则组    
  del (params,businessIdParams) {
    return fetch({
      url: '/api/spec/group/' + params,
      method: 'delete',
      data:businessIdParams
    })
  }
}
export default GroupApi
